<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>表</title>
  <%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
  </head>
  <body class="container">
	<form role="form" action="${ctx}/generate/tabelList" method="post">
	 	<div class="form-group form-inline">
	      <label for="tableName">表名：</label>
	      <input type="text" class="form-control top" value="${bean.tableName }" name="tableName" placeholder="请输入表名">
	   </div>
	   <div class="form-group">
	   		<textarea class="form-control" name="tableComment" placeholder="表注释">${bean.tableComment}</textarea>
	   </div>
	</form>
 	<table class="table table-striped table-bordered table-hover">
 	<caption>列</caption>
 	<thead><tr>
 	<td>columnName名</td><td>isPriKey</td><td>columnNameNoDash</td><td>columnNameCapitalized</td><td>columnType</td><td>columnComment</td>
 	</tr></thead>
	 	<c:forEach items="${bean.columnBeanList}" var="col">
			<tr>
				<td>${col.columnName }</td><td>${col.priKey}</td><td>${col.columnNameNoDash}</td> 
				<td>${col.columnNameCapitalized}</td><td>${col.columnType }</td><td>${col.columnComment }</td>
			</tr>	 	
	 	</c:forEach>
 	</table>
  </body>
</html>
